package com.yhny.lykj.yuhannongye.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;

/**
 * 咨询
 * Created by lc on 2016/4/6.
 */
public class ConsultListModel extends BaseModel{


    @SerializedName("data")
    private ListEntity list;

    public ListEntity getList() {
        return list;
    }

    public void setList(ListEntity list) {
        this.list = list;
    }

    public static class ListEntity extends BaseModel{
        @SerializedName("pid")
        public String id;
        @SerializedName("author")
        public String username;//用户名
        @SerializedName("authorid")
        public String authorid;//作者id
        @SerializedName("author_pic")
        public String pic;//用户头像
        @SerializedName("company")
        public String company;//作者企业
        @SerializedName("companyid")
        public String companyid;//作者企业id
        @SerializedName("dateline")
        public String time;//时间
        @SerializedName("subject")
        public String subject;//咨询标题
        @SerializedName("message")
        public String message;//咨询内容
        @SerializedName("del")
        public int del;//0正常,1已删除
        @SerializedName("invisible")
        public int invisible;//0未回复,1已回复
        @SerializedName("recommend")
        public int recommend;//0未推荐,1已推荐
//        @SerializedName("label")
//        public String label;//标签
        @SerializedName("reply")
        public ArrayList<ReplyListEntity> reply;

        public static class ReplyListEntity extends BaseModel{
            @SerializedName("rid")
            public String rid;//回复id
            @SerializedName("pid")
            public String pid;//咨询id
            @SerializedName("content")
            public String context;//内容
            @SerializedName("time")
            public String time;//时间
            @SerializedName("uid")
            public String uid;//用户id
            @SerializedName("author")
            public String author;//用户名字
            @SerializedName("author_pic")
            public String pic;//用户头像
            @SerializedName("del")
            public String del;//0正常,1删除
            @SerializedName("company")
            public String company;//企业名
            @SerializedName("companyid")
            public String companyid;//企业id
            @SerializedName("type")
            public int type;//1为提问,2为回复
            @SerializedName("cyyid")
            public int cyyid;

        }
    }



}
